package com.buyu.mvvm.mvvm;


import com.buyu.mvvm.mvvm.di.DaggerApplicationComponent;

import org.litepal.LitePal;

import dagger.android.AndroidInjector;
import dagger.android.DaggerApplication;

/**
 * Created by cui-hl on 2018/08/30.
 */

public class MyApplication extends DaggerApplication{

    public String name="MyApplication";

    @Override
    public void onCreate() {
        super.onCreate();
        LitePal.initialize(this);

    }

    @Override
    protected AndroidInjector<? extends DaggerApplication> applicationInjector() {
        return DaggerApplicationComponent.builder().application(this).create(this);
    }

}
